/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package provider;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author eco
 */
public class JPAUtils {
    
    private static EntityManagerFactory emf;
    
    public static EntityManagerFactory getFactory(){
        if(emf == null){
            emf = Persistence.createEntityManagerFactory("LivroPU");
        }
        return emf;
    }
    
}
